package com.tianji.learning.controller;


import com.tianji.common.domain.dto.PageDTO;
import com.tianji.common.domain.query.QuestionAdminPageQuery;
import com.tianji.common.domain.query.QuestionPageQuery;
import com.tianji.learning.domain.dto.QuestionsDTO;
import com.tianji.learning.domain.vo.QuestionAdminVO;
import com.tianji.learning.domain.vo.QuestionVO;
import com.tianji.learning.service.IInteractionQuestionService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

import javax.validation.Valid;

/**
 * <p>
 * 互动提问的问题表 前端控制器
 * </p>
 *
 * @author 大扒鸭
 * @since 2025-07-01
 */
@Api(tags = "互动提问的问题接口")
@RestController
@RequestMapping("admin/questions")
public class InteractionAdminQuestionController {
    @Autowired
    private IInteractionQuestionService questionService;

    @ApiOperation("管理端分页查询问题")
    @GetMapping("page")
    public PageDTO<QuestionAdminVO> queryAdminQuestions(@Valid @RequestBody QuestionAdminPageQuery query){
        return questionService.queryAdminQuestions(query);
    }

}
